package cn.joinhealth.effect.spark.common;

import java.util.Properties;

/**
 * @author yuan
 * @description ClickHouse配置参数
 * @date 2022/3/10 16:02
 */
public class ClickHouseProperties {

    public static final String CLICK_HOUSE_URI = "jdbc:clickhouse://192.168.3.121:9000/CelinaData";

    public static final Properties PROPERTIES = new Properties() {{
//        put("driver", "com.clickhouse.jdbc.ClickHouseDriver");
        put("driver", "com.github.housepower.jdbc.ClickHouseDriver");
        put("batchsize", "100000");
        put("socket_timeout", "300000");
        put("numPartitions", "1");
        put("rewriteBatchedStatements", "true");
    }};
}
